<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="shortcut icon" href="favicon.ico"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>后台管理中心</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <link href="__STATIC__/admin/js/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <!-- Ionicons -->
    <link href="__STATIC__/admin/css/ionicons.min.css" rel="stylesheet" type="text/css" />
    <!-- Theme style -->
    <link href="__STATIC__/admin/css/AdminLTE.css" rel="stylesheet" type="text/css" />
    <script src="__STATIC__/admin/js/jquery.min.js"></script>
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="__STATIC__/admin/js/html5shiv.min.js"></script>
    <script src="__STATIC__/admin/js/respond.min.js"></script>
    <![endif]-->
    <script src="__STATIC__/admin/js/bootstrap/js/bootstrap.min.js"></script>
    <script src="__STATIC__/admin/js/jquery-ui.min.js" type="text/javascript"></script>
    <!-- AdminLTE App -->
    <script src="__STATIC__/admin/js/app.js" type="text/javascript"></script>
    <script src="__STATIC__/admin/js/common.js"></script>
    <script src="__STATIC__/admin/js/plugins.js"></script>
    <script src="__STATIC__/admin/js/layer/layer.js"></script>
</head>
<script>
    $(function () {
        $('#pageContent').height(WST.pageHeight()-98);
    });
    $(window).resize(function() {
        $('#pageContent').height(WST.pageHeight()-98);
    });
    $(document).ready(function(){
        $(".log-out").click(function () {
            var msg ='您确定要进行操作吗?';
            Plugins.confirm({title:'信息提示',content:msg,okText:'确定',cancelText:'取消',okFun:function(){
                $.get("{:url('admin/index/login_out')}",function(data){
                    if(data == 0){
                        layer.msg('退出成功');
                        setTimeout(function(){
                            window.location.href="{:url('admin/index/login')}"
                        },2000);
                    }
                });
            }});
        })
    })
</script>
<body class="skin-blue">
<!-- header logo: style can be found in header.less -->
<header class="header">
    <a href="#" class="logo">
        创·学习
    </a>
    <nav class="navbar navbar-static-top" role="navigation">
        <!-- Sidebar toggle button-->
        <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </a>
        <div class="navbar-right">
            <ul class="nav navbar-nav">
                <li class="dropdown user user-menu">
                    <a href="{:url('home/index/index')}" target='_blank'>
                        <i class="glyphicon glyphicon-home"></i>
                        <span>前台&nbsp;</span>
                    </a>
                </li>
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="glyphicon glyphicon-user"></i>
                        <span>123&nbsp;<i class="caret"></i></span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- User image -->
                        <li class="user-header bg-light-blue">
                            <img src="{$staffImg}" class="img-circle" alt="123" />
                            <p>
                                {$staff['staff_name']}
                                <small>职员编号：{$staff['staff_id']}</small>
                            </p>
                        </li>
                        <!-- Menu Body -->
                        <li class="user-body" style='display:none'>
                            <div class="col-xs-4 text-center">
                                <a href="#">Followers</a>
                            </div>
                            <div class="col-xs-4 text-center">
                                <a href="#">Sales</a>
                            </div>
                            <div class="col-xs-4 text-center">
                                <a href="#">Friends</a>
                            </div>
                        </li>
                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div class="pull-right">
                                <p class="log-out btn btn-default btn-flat">退出系统</p>
                            </div>
                        </li>
                    </ul>
                </li>
    </nav>
</header>
<div class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="left-side sidebar-offcanvas">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="{$staffImg}" class="img-circle" alt="123" />
                </div>
                <div class="pull-left info">
                    <p>Hello, {$staff['staff_name']}</p>
                </div>
            </div>
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu">
                <li class="treeview">
                    <a href="#">
                        <span>课程管理</span>
                        <small id='goodsTips' style='display:none' class="badge pull-right bg-green">0</small>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="{:url('admin/courses/index')}" target='pageContent'>课程列表</a></li>
                        <li><a href="{:url('admin/Courseclassify/index')}" target='pageContent'>课程分类</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="#">
                        <span>会员管理</span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="{:url('admin/user/userList')}" target='pageContent' >会员列表</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="pages/mailbox.html">
                        <span>订单管理</span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="{:url('admin/orders/orderslist')}" target='pageContent' >订单列表</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="pages/mailbox.html">
                        <span>权限管理</span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="{:url('admin/staff/staffList')}" target='pageContent'>管理员列表</a></li>
                        <li><a href="{:url('admin/auth/roleList')}" target='pageContent' >角色列表</a></li>
                        <li><a href="{:url('Admin/auth/addrole')}" target='pageContent' >角色添加</a></li>
                        <li><a href="{:url('admin/auth/staff')}" target='pageContent' >权限分配</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="pages/mailbox.html">
                        <span>审核管理</span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="{:url('admin/examine/userlist')}" target='pageContent' >会员审核</a></li>
                        <li><a href="{:url('admin/examine/videolist')}" target='pageContent' >待审核视频</a></li>
                    </ul>
                </li>
            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>
    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="right-side">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                <small>后台管理中心</small>
            </h1>
        </section>
        </li>
        </ul>
        <!-- Main content -->
        <section class="content" style='margin:0px;padding:0px;'>
            <iframe id='pageContent' name='pageContent' src="{:url('admin/index/welcome')}" width='100%' height='100%' frameborder="0"></iframe>
        </section><!-- /.content -->
    </aside><!-- /.right-side -->
</div><!-- ./wrapper -->
</body>
</html>